package com.charlotte.study.gupao.decorator.battercake.v1;

/**
 * @author junjie.ding
 * @date 2020/3/9
 */
public class Test {

    public static void main(String[] args) {

        BatterCake batterCake = new BatterCake();

        BatterCakeWithEgg withEgg = new BatterCakeWithEgg();

        BatterCakeWithSausage withSausage = new BatterCakeWithSausage();

        System.out.println(batterCake.getMsg() + "\n价格：" + batterCake.getPrice());

        System.out.println(withEgg.getMsg() + "\n价格：" + withEgg.getPrice());

        System.out.println(withSausage.getMsg() + "\n价格：" + withSausage.getPrice());
    }
}
